import request from "../axios"

export function getGoodsList(page) {
    let url = `/api/shop/goodsList?page=${page}&limit=6`
    return request.get(url)
}

export function getGoodsDown(goodsId) {
    let url = `/api/shop/goodsDown?goodsId=${goodsId}`
    return request.get(url)
}

export function getGoodsListById(page,uid) {
    let url = `/api/shop/goodsList?page=${page}&limit=6&uid=${uid}`
    console.log(url)
    return request.get(url)
}